<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddClassGroupToArticleClass extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::table('article_classs', function(Blueprint $table){
			$table->string('class_group', 20)->nullable()->default('');//文章类别分组
		});	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::table('article_classs', function(Blueprint $table){
			$table->dropColumn('class_group'); //文章类别分组
		});
	}

}
